package cc.openhome;

/**
 * Created by Cai Ye on 2016/3/22.
 */
public class Game5RPG {
    public static void main(String[] args) {
    Game5SwordsMan swordsMan=new Game5SwordsMan();
    swordsMan.setName("Justin");
    swordsMan.setLevel(1);
    swordsMan.setBlood(200);

    Game5Magician magician=new Game5Magician();
    magician.setName("Monica");
    magician.setLevel(1);
    magician.setBlood(100);

    drawFight(swordsMan);
    drawFight(magician);
}
    static void drawFight(Game5Role role){
        System.out.print(role.getName());
        role.fight();
    }
}


